Girl helping a boy in university

Q: I study in a co university. Yesterday was my first class. A guy came and sat next to me. He seem to know nothing about using the computer and kept asking me questions. Is it permissible to help na mahram regarding studies with no impure intentions? Also, he was sitting really close to me. Is that haram?