Paytm interview question

Puzzles, Java, Framework