So very first behavior server of OTP that we are gonna look in is Generic(I am guessing what gen means in erlang)…