Its usually a friendly greeting that is screamed as loud as possible in schools or other public places. You need to scream when saying it so that as many people as possible can hear how nice you are.
Person: Hey wassup Ibrahim!
Ibrahim: Allahu Akbar!
*unrelated explosion*