Angi Interview Question

Code pairing on a hackerank challenge