Insi interview question

Very close to Leetcode 1134 revised version