Sample iOS app to solve survivor chair problem