# TWO HOURGLASSES | Inmobi interview

You have two sand hourglasses,

one that measures exactly 4 minutes and one that measures exactly 7 minutes.

You need to measure out exactly 2 minutes to boil an egg. new balance 998 for sale Using only these two hourglasses,

Assumptions:

1) No time will be taken in refilling the hourglass.

2) As soon as the hourglass gets empty,it is refilled.

1) at 4th minute , firsthourglass would get empty

2) at 7th minute second hourglass would get empty

3) at 8 minute first hourglass would get empty

4) at 12 minute first hourglass would get empty

Now at 12thminute , there are 2 minutes left in getting the secondhourglass empty,(at 14th minute it would be empty)

So in this duration egg can be boiled.