Paytm Interview Question

leetcode jump problem was asked to code