Morgan Stanley Interview Question

An easy Leetcode coding question