EY Interview Question

Python and Javascript basics question