Paytm interview question

hoisting