In middle school, Junior Alvarado often struggled with multiplication and earned poor grades in math, so when he started his freshman year at Washington Leadership Academy, a charter high school in the nation’s capital, he fretted that he would lag behind.