EY Interview Question

Its was related to Coding