Niveus Solutions Interview Question

Two Puzzles and coding in both technical rounds