Optasia interview question

problem solving with two question