Cisco interview question

3 coding questions 2 arrays 1 dp