Rally Health Interview Question

Easy Leetcode question