Screening Eagle interview question

2 Coding exercises with a desired output.