Leetcode 2252. Dynamic Pivoting of a Table | Hello Interview