Solving the second hardest question on leetcode

Published --