That is the correct wave function. Can you use that to predict the probability in being in one section of the box? Remember that [tex]\left|\psi\left(x\right)\right|^2[/tex] is a probability density, so you have to integrate over some interval in x (The right interval is specified in your problem, can you spot it?).