The Cigna Group interview question

2 coding questions from coderbyte