Solutions to different questions on various Online Judges