OpenTable Interview Question

Find minimum flips taken for 3 coins. Heaps/Tries Databases