It might be due to a fungal/bacterial infection.
I Need more information with pictures to come to a correct diagnosis.
Early treatment will prevent complications in future.
Next Steps
consult or chat with me online/any dermatologist with clear pictures for prescription of medicine
Health Tips
do not cut the nails too deep as might cause ingrown nail and increases chance of infection.