Scanf.scanf "%d %s %s" (fun n s t -> let n = String.length s in let rec loop i acc = if i = n then acc else loop (i + 1) (if s.[i] = t.[i] then acc else acc + 1) in loop 0 0 |> Printf.printf "%d\n" )