Pergunta de entrevista da empresa Komprise

Coding Questions asked: 1. Given an array find and return all unique pairs which sums up to a target. 2. Water trapping problem in coding round . 3. Question related to binary tree in coding round. 4. Given a string (ex- "LRUDLLRUD") and a starting position is given you have to find the final position after moving according to string where L is left U is up etc. With some constraints like it is surrounded by rectangle and it will re-bounce after hitting a wall of rectangle frame.