Looloo Technology interview question

Please solve the following problem?