Didn't sleep at all last night and I have two exams today. How to keep my brain sharp?

Insomnia. If you didnt sleep then you are probably not rested enough, but since you didnt sleep and need to be awake and sharp, drinking coffee in moderate amounts should help as a temporary solution for that day.