Find minimum time to cross bridge with flashlight | NVIDIA Interview Question