First a screening interview, then an interview discussing salary and some other things, then an interview with the team, then a techincal interview, then rejection. For some reason it was made to be backwards. The technical interview should have come first so I wouldnt loose all this time