When I go to the Apple app store and tried to download I got the below response, can I get any idea how I can bypass this issue?
Xcode can’t be installed on “Macintosh HD” because macOS version 10.13.2 or later is required.
When I go to the Apple app store and tried to download I got the below response, can I get any idea how I can bypass this issue?
Xcode can’t be installed on “Macintosh HD” because macOS version 10.13.2 or later is required.
It seems like you have old OS X. Try to download from the internet Xcode 3/4/5.

https://www.appcoda.com/how-to-download-older-version-of-xcode/ Read this about older versions.
To check your OS X:
You are probably running Sierra or less, You need to update you Mac OS X into High Sierra in order to update and use the latest Xcode 9.3.
Note: You could be running High Sierra but make sure you update to the latest OS X Release from App Store > Updates Tap and make sure its all updated.