Indeed interview question

1 Easy Hacker Rank Question