Conrad Labs interview question

In coding interview there were some leetcode probs such as Maximum water container