NIC student combines passion for math and medicine