you have 3 integers given X,Y,Z
X is amount of black soldiers
Y is amount of purple soldiers
Z is amount of white soldiers
Calculate how many variations there are if black and white can't stand togethere (a purple must be inbetween). What would be the formula in the case if variations can't and if they can repeat.