Sollicitatievraag bij Sumitomo Mitsui Financial Group

Write efficient code, and explain your thought process