Genting interview question

Mathematical Question