1518. Water Bottles - Explanation

Problem Link