Mashmokh work factory at end day turn light the light factory index 1 n there n button Mashmokhs room index 1 n if Mashmokh push button index light index turn turn offmashmokh clever so instead push button push button randomly night he push m distinct button b1b2bm button push consecutively give order night now wants know light index button turn light please note index button bi actually bi iPlease help Mashmokh print index