Leetcode 2540. Minimum Common Value | Hello Interview