Shares of Infosys have declined about 30% this year as investors have assessed its chances to cope with the challenges posed by AI.