https://www.geeksforgeeks.org/gold-mine-problem/