Student finds genius solution to teacher banning phones in exam room