Mark43 Interview Question

it was an easy leetcode question