Remove corn from cob, boil in a pan, remove and mash. Boil all vegetables. Heat oil in a pan, add mustard seeds and curry leaves. When they begin to crackle, add vegetables and corn. Add chopped green chilies, ginger, sugar and salt. Add grated coconut and mix well.
Serve hot as an accompaniment to the main dish.