ZS Associates Interview Question

2 puzzles and general HR questions