Spinny interview question

DSA questions. 1. Array normal one 2. DP medium one