Also add the curry leaves and fry them for a minute or two.
Now add the finely chopped garlic and again fry for a while.
Add the medium size onions and saute nicely it becomes translucent. Once the onions are saute nicely add the chopped babycorn and required salt and start frying it.
Check the below recipe notes...