Peloton Interview Question

Easy leetcode object manipulation question