samsung s6 camera changed and focus is not working??????

hi guys I just changes samsung s6 back camera and after that focus is not working???

is this hardware problem or software?can some one genious help to get out from this problem…………………….regarddddddddddddd ddddddds