Pergunta de entrevista da empresa Meraki

Write the code for finding if the ip is within the subnet or not. (prototypes are given - which will be confusing)