Solve TheDeviceDiv2