BairesDev Interview Question

Quick math solutions that required me to think fast.